Component({
  properties: {
    entity: {
      type: Object,
      value: ''
    },
    title: {
      type: String,
      value: 'E单配'
    },
    flex: {
      type: String,
      value: 'row-between'
    }
  },
  data: {
    navHeight: 0,
    custom: null
  },
  /**
   * 属性监听
   */
  observers: {},
  /**
   * 函数
   */
  methods: {
    navInfo () {
      wx.getSystemInfo({
        success: e => {
          let custom = wx.getMenuButtonBoundingClientRect();
          this.setData({
            custom: custom,
            navHeight: (custom.bottom + custom.top - e.statusBarHeight)
          });
        }
      });
    }
  },
  /**
   * 生命周期
   * 在组件实例进入页面节点树时执行
   */
  lifetimes: {
    attached: function () { 
      this.navInfo()
    }
  }
});